package com.innovation.chengzhangriji.http;

import com.google.gson.annotations.SerializedName;
import com.innovation.library.http.InnovationRequestBody;

public class CheckJoinRequest extends BaseTokenRequest {

    public static final String PATH = BaseRequest.PATH + "api/Audit_Apply";

    private int babyID;

    private String applyID;

    private int applyState;

    public int getBabyID() {
        return babyID;
    }

    public void setBabyID(int babyID) {
        this.babyID = babyID;
    }

    public String getApplyID() {
        return applyID;
    }

    public void setApplyID(String applyID) {
        this.applyID = applyID;
    }

    public int getApplyState() {
        return applyState;
    }

    public void setApplyState(int applyState) {
        this.applyState = applyState;
    }

    @Override
    protected InnovationRequestBody getInnovationRequestBody() {
        CheckJoinRequestBody body = new CheckJoinRequestBody();
        body.setPhone(getPhone());
        body.setToken(getToken());
        body.setBabyID(getBabyID());
        body.setApplyID(getApplyID());
        body.setApplyState(getApplyState());
        return body;
    }

    private class CheckJoinRequestBody extends BaseTokenRequestBody {

        @SerializedName("BabyID")
        private int babyID;

        @SerializedName("ApplyID")
        private String applyID;

        @SerializedName("ApplyState")
        private int applyState;

        public int getBabyID() {
            return babyID;
        }

        public void setBabyID(int babyID) {
            this.babyID = babyID;
        }

        public String getApplyID() {
            return applyID;
        }

        public void setApplyID(String applyID) {
            this.applyID = applyID;
        }

        public int getApplyState() {
            return applyState;
        }

        public void setApplyState(int applyState) {
            this.applyState = applyState;
        }

        private CheckJoinRequestBody() {
            setSv(BaseRequestConfig.SV_CHECK_JOIN);
        }
    }

}
